package com.curso.session3;

import javax.swing.JOptionPane;

public class Ejemplo5c {

	public static final int LUNES = 1;
	public static final int MARTES = 2;
	public static final int MIERCOLES = 3;
	public static final int JUEVES = 4;
	public static final int VIERNES = 5;
	public static final int SABADO = 6;
	public static final int DOMINGO = 7;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int dia = Integer.parseInt(JOptionPane
				.showInputDialog("Ingrese un numero de 1 a 7"));

		switch (dia) {
		case LUNES:
			JOptionPane.showMessageDialog(null, "Su dia es Lunes");
			break;
		case MARTES:
			JOptionPane.showMessageDialog(null, "Su dia es Martes");
			break;
		case MIERCOLES:
			JOptionPane.showMessageDialog(null, "Su dia es Miercoles");
			break;
		case JUEVES:
			JOptionPane.showMessageDialog(null, "Su dia es Jueves");
			break;
		case VIERNES:
			JOptionPane.showMessageDialog(null, "Su dia es Viernes");
			break;
		case SABADO:
			JOptionPane.showMessageDialog(null, "Su dia es Sabado");
			break;
		case DOMINGO:
			JOptionPane.showMessageDialog(null, "Su dia es Domingo");
			break;
		default:
			JOptionPane.showMessageDialog(null,
					"Ingreso un un valor incorrecto");
		}

	}

}